package com.example.activityservice;



import com.example.feignservice.config.FeignConfig;
import com.example.feignservice.service.UserClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
// 这里就是自动开启Feign  在自动装配feign的时候 spring还会自动创建对应的UserService的对象到容器当中
@EnableFeignClients(clients = UserClient.class,defaultConfiguration = FeignConfig.class)

public class ActivityServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(ActivityServiceApplication.class, args);
    }

}
